#ifndef __led_displayh__
#define __led_displayh__


/* LED CMD */
#define LED_REST        0x01


//LED IO
#define LED_SEL    P7SEL &= 0x00
#define LED_DIR_OUT    P7DIR |= 0xFF
#define LED_DIR_IN     P7DIR &= 0x00
#define LED_DATA_OUT   P7OUT
#define LED_DATA_IN    P7IN
 
#define LED_FUNC_DIR    (P4DIR |= (BIT7 + BIT6 + BIT5 + BIT4 + BIT3))

#define LED_ENABLE      P4OUT |= BIT7
#define LED_DISABLE     P4OUT &= ~BIT7

#define LED_DATA        P4OUT |= BIT3
#define LED_CMD         P4OUT &= ~BIT3

#define LED_READ        P4OUT |= BIT5
#define LED_WRITE       P4OUT &= ~BIT5

#define LED_PAR         P4OUT |= BIT4
#define LED_SER         P4OUT &= ~BIT4

#define LED_RESET       P4OUT &= ~BIT6
#define LED_SET         P4OUT |= BIT6


void delayms (unsigned int n);

void DisplayGraphic (unsigned char * adder);
void delay (unsigned int m);


#endif
